Strange issue in a controller I have the following IndexAction
public function indexAction()
{
echo "before";
$this->view->pick('helloworld');
echo "after";
}
Just messing around really, but I would expect to see both before and after. Is there a reason I am not seeing the before or after? (I assume output buffering has something to do with this).
I am using a mixture of the Volt & PHP rendering engine using the following custom compilation folder (which I would not expect would influence views...
//
// Setup Template Engine(s)
//
$di->set( 'view', function() {
$view = new View();
$view->setViewsDir( PRIVATEDIR . '/views/' );
$volt = function($view, $di) {
$volt = new Volt($view, $di);
$volt->setOptions( [
'compiledPath' => function( $templatepath ) {
return TMPDIR . '/cache/templates/' . md5( $templatepath ) . '.compiled';
},
] );
return $volt;
};
$view->registerEngines( [
".volt" => $volt,
".tmpl" => $volt,
".phtml" => $volt,
'.php' => 'Phalcon\Mvc\View\Engine\Php',
] );
return $view;
} );
Update: So strange, but I can echo content before and after initializing phalcon, and it has issues. Framework is Phalcon v2 from apt-get install on Ubuntu 14.04 LTS all updates via PHP5-FPM served through nginx